package com.wcs.exam.controller.admin.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * Admin-用户考勤-查看响应对象
 * </p>
 *
 * @author wcs
 * @since 2025-03-13
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-用户考勤-查看响应对象")
public class AdminUserAttendanceViewResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "考勤类型(1:普通考试、2:报名考试)")
    private Integer attendanceType;

    @Schema(description = "关联ID")
    private Long relateId;

    @Schema(description = "考试记录ID")
    private Long examRecordId;

    @Schema(description = "考勤考试场景(1:开考前、2:答题时抓拍、3:答题时高灵敏度人脸监测)")
    private Integer attendanceExamScene;

    @Schema(description = "考勤方式(1:点击打卡、2:人脸识别)")
    private Integer attendanceWay;

    @Schema(description = "考勤通过(0:不通过、1:通过)")
    private Boolean attendancePass;

    @Schema(description = "人脸识别调用(0:未调用、1:调用)")
    private Boolean faceIdCall;

    @Schema(description = "人脸识别类型(1:活体人脸核身、2:活体人脸比对)")
    private Integer faceIdType;

    @Schema(description = "人脸识别相似度")
    private BigDecimal faceSim;

    @Schema(description = "用户图像")
    private String userImage;

    @Schema(description = "最佳照片(识别返回)")
    private String bestImage;

    @Schema(description = "返回信息(识别返回)")
    private String respMsg;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "排序")
    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "修改时间")
    private LocalDateTime gmtModified;
}
